<template>
  <chart-pie v-bind="$props" />
</template>

<script>
import { isEmpty } from "lodash";
import ChartPie from "./echartPie.vue";

export default {
  name: "EchartPie",
  components: { ChartPie },
  props: ChartPie.props,
  computed: {
    isSeriesEmpty() {
      return (
        isEmpty(this.seriesData) || this.seriesData.every((item) => !item.value)
      );
    },
  },
};
</script>
